#define _CRT_SECURE_NO_WARNINGS 1 
using namespace std;
#include"vector.h"
using namespace MyVector;


void testvector1()
{
	MyVector::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.print_vector();
	cout << endl;
	MyVector::vector<int>v2;
	v2 = v1;
	v2.print_vector();
	v2.erase(v2.begin());
	v2.print_vector();
	v2.erase(v2.begin() + 2);

	v2.print_vector();
	/*cout << v1.size() << " ";
	cout << v1.capacity() << " ";
	v1.reserve(100);
	cout << endl;
	cout << v1.size() << " ";
	cout << v1.capacity() << " ";
	cout << endl;

	MyVector::vector<double> v2;
	v2.push_back(1.1);
	v2.push_back(2.2);
	v2.push_back(3.3);
	v2.push_back(4.4);
	v2.print_vector();

	MyVector::vector<int> v4(v1);
	v4.print_vector();
	v4.insert(v4.begin() + 1, 5);
	v4.print_vector();
	v4.erase(v4.begin() + 1);
	v4.print_vector();
	v4.erase(v4.end()-1);
	v4.print_vector();
	v4.pop_back();
	v4.print_vector();
	v4.pop_back();
	v4.print_vector();
	v4.pop_back();
	v4.print_vector();
	const MyVector::vector<int> v5(v1);
	v4.print_vector();
	const MyVector::vector<int> v6 = v5;
	v4.print_vector();*/

}

void testvector2()
{
	vector<string>v1;
	v1.push_back("1111");
	v1.push_back("2222");
	v1.push_back("3333");
	v1.push_back("4444");
	v1.push_back("5555");
	v1.push_back("5555");
	v1.push_back("5555");
	v1.print_vector();

	vector<string>::reverse_iterator it = v1.rbegin();

	while (it!=v1.rend())
	{
		cout << *it << endl;
		it++;
	}

	


}
int main()
{
	testvector2();
	return 0;
}